package com.blockchainenergy.blockChain;


import java.util.Map;

/**
 * @descriptions:
 * @data: 2021/11/4 21:25
 */
public interface BlockChainService {
    // 获取全部区块链信息
    Map<String, Object> getFullChain() throws Exception;

    Map<String, Object> getFullChainWithHash() throws Exception;

    Block getBlockByIndex(Integer index) throws Exception;

    void matrixToBlock(int[][] matrix) throws Exception;

    Map<String, Object> getLast10BlockWithHash() throws Exception;
}
